home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre1.z / postgre1 / test / alltests.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1992-08-27  |  739 b   |  44 lines

  1. #!/bin/sh
  2.  
  3. # $Header: /private/postgres/test/RCS/alltests.sh,v 1.3 1992/08/06 23:22:01 mer Exp $
  4.  
  5. # This is a shell script that runs all of the Postgres demo tests.
  6. # It is the last thing done before releasing and should execute
  7. # flawlessly from beginning to end.
  8.  
  9. CWD=`pwd`
  10.  
  11. # PMTESTS run under the postmaster while BETESTS are the backend in
  12. # standalone mode.
  13.  
  14. PMTESTS="demo video"
  15. BETESTS="bench"
  16.  
  17. PM=$POSTGRESHOME/bin/postmaster
  18.  
  19. for i in $BETESTS
  20. do
  21.     echo running $i...
  22.     cd $POSTGRESHOME/$i
  23.     rm -f $CWD/$i.out
  24.     ./whole$i.sh > $CWD/$i.out 2>&1
  25. done
  26.  
  27. $PM &
  28. PMPID=$!
  29.  
  30. sleep 2
  31.  
  32. for i in $PMTESTS
  33. do
  34.     echo running $i...
  35.     cd $POSTGRESHOME/$i
  36.     rm -f $CWD/$i.out
  37.     ./whole$i.sh > $CWD/$i.out 2>&1
  38. done
  39.  
  40. kill -15 $PMPID
  41.  
  42.  
  43. echo alltests done.
  44.